package com.metrictracker.model;

import java.util.Date;

import javax.persistence.Id;

import com.googlecode.objectify.Key;

public class MetricGoal {

	@Id Long id;
	public static final String LOWISBETTER = "LOWISBETTER";
	public static final String HIGHISBETTER = "HIGHISBETTER";
	public static final String CLOSESTTOTHEPIN = "CLOSESTTOTHEPIN";
	public static final String goalTypes[] = new String[] {LOWISBETTER, HIGHISBETTER, CLOSESTTOTHEPIN};
	
	Key<Metric> metricKey;
	String name;
	String goalType;
	float goal;
	Date effectivityDate;
	Date expirationDate;
	
	public MetricGoal () {}
	
	public void setMetric (Metric metric) {
		metricKey = metric.getKey();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getGoalType() {
		return goalType;
	}

	public void setGoalType(String goalType) {
		this.goalType = goalType;
	}

	public float getGoal() {
		return goal;
	}

	public void setGoal(float goal) {
		this.goal = goal;
	}

	public Date getEffectivityDate() {
		return effectivityDate;
	}

	public void setEffectivityDate(Date effectivityDate) {
		this.effectivityDate = effectivityDate;
	}

	public Date getExpirationDate() {
		return expirationDate;
	}

	public void setExpirationDate(Date expirationDate) {
		this.expirationDate = expirationDate;
	}	
}
